import Vue from 'vue';
import Antd from 'ant-design-vue';
import App from './App';
import 'ant-design-vue/dist/antd.css';
// import store from "./components/store";
import store from "./store";
Vue.config.productionTip = false

import axios from 'axios'
import VueAxios from 'vue-axios'

// import { ApiUrl } from '/static/js/config'
// Vue.prototype.baseUrl = ApiUrl;

import router from "./router.js";
import VueWechatTitle from 'vue-wechat-title'

Vue.use(VueWechatTitle)


// 引入 vue-router
// import VueRouter from "vue-router";
// Vue.use(VueRouter);

// import Page2 from "./components/Home.vue";
// import MainContent from "./components/MainContent.vue";
// import Home from "./components/Home.vue";

// import SearchBox from "./components/SearchBox.vue";
// 配置路由信息
// const routes = [
//   // 以 / 开头的嵌套路径会被当作根路径
//   {
//     path: "?home",
//     component: Home,
//     name: "Home",
//     children: [
//       { path: "MainContent", component: MainContent, name: "MainContent" },

//       { path: "page2", component: Page2, name: "Page2" }
//     ]
//   },
//   // 通配符 * 会匹配所有路径
//   // 路由 { path: '*' } 通常用于客户端 404 错误
//   // 含有通配符的路由应该放在最后
//   { path: "*", redirect: { name: "Home" } }
// ];

// const router = new VueRouter({
//   routes // （缩写）相当于 routes: routes
// });


Vue.use(VueAxios, axios);
Vue.use(Antd);


/* eslint-disable no-new */
new Vue({
    el: '#app',
    store,
    router,
    render: h => h(App)
});